package com.zhny.aiot.control.cabinet.plugin.model;

public class CommandParam {
    private  int regAdress;
    private  int dataSize;
    private short oper;

    public static CommandParam valueOf( short oper,int regAdress,int dataSize) {
        CommandParam entry = new CommandParam();
        entry.setOper(oper);
        entry.setRegAdress(regAdress);
        entry.setDataSize(dataSize);
        return entry;
    }

    public short getOper() {
        return oper;
    }

    public void setOper(short oper) {
        this.oper=oper;
    }

    public int getRegAdress() {
        return regAdress;
    }

    public void setRegAdress(int regAdress) {
        this.regAdress=regAdress;
    }

    public int getDataSize() {
        return dataSize;
    }

    public void setDataSize(int dataSize) {
        this.dataSize=dataSize;
    }
}
